{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "3296857b",
   "metadata": {},
   "source": [
    "* 日期：2022-10-12\\week8\n",
    "\n",
    "* 课程：python"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "1381ff71",
   "metadata": {},
   "outputs": [
    {
     "ename": "IndentationError",
     "evalue": "unindent does not match any outer indentation level (<tokenize>, line 14)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  File \u001b[1;32m<tokenize>:14\u001b[1;36m\u001b[0m\n\u001b[1;33m    else print(\"您的余额己不足，请更换支付方式\")\u001b[0m\n\u001b[1;37m    ^\u001b[0m\n\u001b[1;31mIndentationError\u001b[0m\u001b[1;31m:\u001b[0m unindent does not match any outer indentation level\n"
     ]
    }
   ],
   "source": [
    "# 准备工作\n",
    "product_list = [\n",
    "    \"自行车 299\"，\n",
    "    \"Iphone 14 pro 8000\",\n",
    "    \"Nft 盲盒 28\"，\n",
    "    \"许老师的python书 80\"\n",
    "]\n",
    "1.Alipay = (\"请输入余额:\")\n",
    "  print()\n",
    "2.      user_choice = input(\"请输入商品编号：\")\n",
    "        # 0,1,2,3\n",
    "3.      if 钱够, Alipay - 商品的价格\n",
    "            shopping_car.append(product_list[user_choice])\n",
    "        else print(\"您的余额己不足，请更换支付方式\")\n",
    "4.# 情景2： 用户输入\"q\"，退出购买\n",
    "  print(shopping_car)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "efc99422",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
